package com.jeason.fileserver.service;

import com.jeason.fileserver.utils.FileUploadUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author 26950
 * @date 2021/1/17 11:21
 */
@Service
public class FileUploadService {

    public String upfile(MultipartFile file, HttpServletRequest request) throws IOException {
        String pathFileName = FileUploadUtils.upload( file);

        return pathFileName;
    }
}
